'''
Created on Feb 28, 2011

@author: Chris
'''

class Sentence(object):
    '''
    a token which can be broken down further into smaller tokens for easy analysis. The Sentence class represents a string of words in a section
    '''


    def __init__(self):
        '''
        Constructor
        '''
        self.wordCount = 0 # This is the count of all of the words in the particular section
        self.punctuation = None  # This is the type of punctuation that the particular sentence ends in
        self.words = [] # This is the list of tokenized words contained in the documents delimited by spaces and stripped of punctuation
        self.text =[] # the text of the sentence
        
    def addWord(self, word):
        self.words.append(word)
        self.wordCount += 1
        
    def getWords(self):
        return self.words
        